<#include "/resources/share/common/_commtop.html"/>
<@layout>
<title>加密</title>
<div>
base64加密
<br/>
<input id="base64ec" type="text">
<br/>
base64加密后
<br/>
<input id="base64ec_str" type="text">
<br/>
<br/>
base64解密
<br/>
</div>
<div>
md5加密
<br/>
</div>
<div>
sha1加密
<br/>
</div>
<script>
function base64encode(str){
	//加密
	var b = new Base64();  
    str = b.encode(str);  
    return str;
}
function base64decode(str){
	//解密
    str = b.decode(str);   
    return str;
}

function md5encode(str){
	//加密
	str = hex_md5(str); 
    return str;
}

function sha1encode(str){
	//加密
	str = hex_sha1(str); 
    return str;
}
</script>
<div style="height: 35px;">
</div>	
	<#include "/resources/share/common/_friendshiplink.html" />
	<@pagelink />
</@layout>